package com.lizhenhua.timeoutcancel.feignClient;

import com.lizhenhua.timeoutcancel.fallback.OrderCloseFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "order-close",fallback = OrderCloseFallback.class)
public interface OrderCloseFeignClient {
    @GetMapping("/order/close")
    public  int closeOrder(@RequestParam("orderId") String orderId,@RequestParam("closeType") int closeType);
}
